import logging
import time

def setLogging(iProcessName, iLevel = logging.DEBUG):
    logging.basicConfig(filename='..\\..\\..\\logs\\' + iProcessName + '_' + time.strftime('%y%m%d_%H%M%S', time.gmtime()) + '.log', filemode='w', format='%(asctime)s %(levelname)s <%(filename)s %(lineno)d> %(funcName)s: %(message)s', level=iLevel)